package game;

import java.awt.Point;

import game.GameDice.DiceColour;
import game.GameDice.DiceType;

public class DiceFactory {
	
	private String buttonName;
	private GameDice dice;
	
	public GameDice makeGameDice(String buttonName) {
		String colour = Character.toString(buttonName.charAt(0));
		String type   = Character.toString(buttonName.charAt(2));
		int x 		  = buttonName.charAt(3);
		int y 		  = buttonName.charAt(4);
		return new GameDice(DiceColour.valueOf(colour), DiceType.valueOf(type), new Point(x,y));
	}


	
}
